body {
  font-family: Arial, sans-serif;
  background-color: #f0f5f9;
  margin: 0;
  padding: 20px;
}


.logo {
  font-size: 24px;
  font-weight: bold;
  color: #1e88e5;
}

.search-container {
  display: flex;
  align-items: center;
  flex-grow: 1;
  max-width: 500px;
  margin: 0 20px;
}

.search-box {
  flex-grow: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  box-sizing: border-box;
}

.search-button {
  padding: 8px 15px;
  background-color: #1e88e5;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.search-button:hover {
  background-color: #0d47a1;
}

.nav-links {
  display: flex;
  gap: 15px;
}

.nav-links a, .nav-links router-link {
  color: #333;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 4px;
}

.nav-links a:hover, .nav-links router-link:hover {
  background-color: #e3f2fd;
}

.active {
  background-color: #e3f2fd;
  color: #1e88e5 !important;
}

.recommend-section {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
}

.title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.title-bar h2 {
  color: #333;
  margin: 0;
}

.title-bar a {
  color: #1e88e5;
  text-decoration: none;
}

.title-bar a:hover {
  text-decoration: underline;
}

/* 增加卡片高度 */
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: hidden;
  transition: transform 0.3s ease;
  /* 增加高度相关样式 */
  min-height: 280px; /* 增加最小高度 */
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
}

/* 增加封面高度 */
.card-cover {
  height: 180px; /* 增加封面高度 */
  background-size: cover;
  background-position: center;
}

/* 调整内容区域高度 */
.card-content {
  padding: 15px;
  flex-grow: 1; /* 让内容区域填充剩余空间 */
}

.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #1e88e5;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
